#mysql
# SQLALCHEMY_DATABASE_URI = 'mysql+mysqlconnector://root:bionet2022@36.133.124.43:10009/bionet-metabonomics?charset=utf8'
SQLALCHEMY_DATABASE_URI = 'mysql+mysqlconnector://root:123456@localhost:3306/bionet-metabonomics?charset=utf8'
SQLALCHEMY_TRACK_MODIFICATIONS = True
#debug
DEBUG_LOG = True
#log save 1为文件形式，2为数据库形式，默认数据库
SAVE_LOG = 1
#upload
PASSERBY_UPLOAD_FOLDER = '/app/Uploads/passerby/'# 允许目录
LOGINUSER_UPLOAD_FOLDER = '/app/Uploads/loginuser/'# 允许目录
EXAMPLE_FOLDER = '/app/Uploads/'
MAX_CONTENT_LENGTH = 100 * 1024 * 1024  # 允许大小16MB
ALLOWED_EXTENSIONS = set(['txt', 'pdf', 'png', 'jpg', 'jpeg', 'gif', 'xlsx', 'xls', 'csv'])  # 允许文件
ALLOWED_FILE_UPLOAD_EXTENSIONS = set(['csv'])  # 允许文件
#jwt
SECRET_KEY = '7PXsHcHGfa4e3kEs8Rvcv8ymjI0UeauX'
JWT_LEEWAY = 604800
# 文件存贮地址
TEMP_FILE_WEB_PATH = "/api/user/uploads/passerby/"
USER_FILE_WEB_PATH = "/api/user/uploads/loginuser/"
EXAMPLE_WEB_FOLDER = '/api/user/uploads/'